//
// Created by 陈奕锟 on 2022/10/23.
//
#include "ftpch.h"

#include "Log.h"

#include "spdlog/sinks/stdout_color_sinks.h"

namespace Funtal
{

    std::shared_ptr<spdlog::logger> Log::s_CoreLogger;
    std::shared_ptr<spdlog::logger> Log::s_ClientLogger;

    void Log::Init()
    {
        spdlog::set_pattern("%^[%T] %n %v%$");
        s_CoreLogger = spdlog::stdout_color_mt("FUNTAL");
        s_CoreLogger ->set_level( spdlog::level::trace );

        s_ClientLogger = spdlog::stdout_color_mt("APP");
        s_ClientLogger ->set_level( spdlog::level::trace );
    }
}